var verify_sams_city_different_price_baseMsg = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"T1", "MSG":"","DATA":"","SCRIPTNAME":"verify_sams_city_different_price"}');

// 获取提报详情 同城数据
if (!isNull(request_sku_list)) {
    var verify_sams_city_different_price_data = JSON.parse(request_sku_list);
    for (var verify_sams_city_different_price_i = 0; verify_sams_city_different_price_i < verify_sams_city_different_price_data.length; verify_sams_city_different_price_i++) {
        var verify_sams_city_different_price_obj = verify_sams_city_different_price_data[verify_sams_city_different_price_i];
        if (!isNull(verify_sams_city_different_price_obj.retail_tax) && !isNull(retail_tax) && verify_sams_city_different_price_obj.retail_tax == retail_tax) {
            // 两个对比的 含税售价如果相等 直接跳过
            continue;
        }
        if (isNull(verify_sams_city_different_price_obj.retail_tax) || isNull(retail_tax)) {
            // 两个对比的 含税售价如果相等 直接跳过
            continue;
        }
        // 判断交叉门店
        if (!determineInterSectionStore(verify_sams_city_different_price_obj, id, item_nbr, trait_nbr, store_id, trait_store, store_type, false, store_jd)) {
            continue;
        }

        var verify_sams_city_different_price_d1 = getNewDate(new Date(verify_sams_city_different_price_obj.retail_start_date));
        var verify_sams_city_different_price_d2 = isNull(verify_sams_city_different_price_obj.retail_end_date) ? getNewDate(new Date("2049-12-31")) : getNewDate(new Date(verify_sams_city_different_price_obj.retail_end_date))
        var verify_sams_city_different_price_d3 = getNewDate(new Date(retail_start_date));
        var verify_sams_city_different_price_d4 = isNull(retail_end_date) ? getNewDate(new Date("2049-12-31")) : getNewDate(new Date(retail_end_date))

        // 判断交叉时间
        var verify_sams_city_different_price_overlapsFlag = overlaps(verify_sams_city_different_price_d1, verify_sams_city_different_price_d2, verify_sams_city_different_price_d3, verify_sams_city_different_price_d4);
        if (!verify_sams_city_different_price_overlapsFlag) {
            continue;
        }
        verify_sams_city_different_price_baseMsg.CODE = 2;
        verify_sams_city_different_price_baseMsg.ACTION = 'error';
        verify_sams_city_different_price_baseMsg.MSG = '存在同城不同价';
        break;
    }
}

JSON.stringify(verify_sams_city_different_price_baseMsg);